package spring.bean;

/**
 * @author durant
 * @create 2021-10-30 9:53
 */
public class Emp {
    private String ename;
    private String gender;
    private Dept dept;
    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public void setGender(String gender) {
        this.gender = gender;

    }
    public void add(){
        System.out.println(gender+"::"+ename+";;"+dept.getDname());
    }
}
